<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
a{
	color:#333;
	text-decoration:none;
	}
dl{
	border:1px #90A2AE solid;
	padding:10px;
	margin:10px;
	background:#F2F5F7;
	}
dt{
	height:30px;
	background:#8BA2B9;
	display:block;
	clear:both;
	border-top:1px #D1DAE3 solid;
	}
dd{
	border:1px #D1DAE3 solid;
	border-top:0px;
	border-bottom:0px;
	padding:5px 0px 5px 20px;
	margin-left:0px;
	display:block;
	clear:both;
	background:#F5F7FA;
	}
p{
	margin:10px;
	font-size:14px;
	font-weight:bold;
	background:url(<?php echo $baseurl ?>images/admin_image/icon_top.jpg) left center no-repeat;
	padding-left:18px;
	}
span{

	display:block;
	height:18px;}
-->
</style>
</head>

<body>
 <script language = "JavaScript">  
 function checkdata() {
	if( document.form1.lec_title.value=='') {
		alert("\讲座名称不能为空！");
		document.form1.lec_title.focus();
		return false;
		}
	if( document.form1.lec_time.value=='') {
		alert("\讲座时间不能为空！");
		document.form1.lec_time.focus();
		return false;
		}
	if( document.form1.lec_address.value=='') {
		alert("\讲座地点不能为空！");
		document.form1.lec_address.focus();
		return false;
		}
	if( document.form1.lec_intro.value=='') {
		alert("\讲座内容简介不能为空！");
		document.form1.lec_intro.focus();
		return false;
		}
	if( document.form1.lec_tel.value=='') {
		alert("\报名电话不能为空！");
		document.form1.lec_tel.focus();
		return false;
		}
	if( document.form1.userfile.value!='') {
		document.form1.fileisok.value=0;
		}
	return true;
	}
 </script>
<div><form action="<?php echo $action;?>" method="post" name="form1" enctype="multipart/form-data" onsubmit="return checkdata();" >
<p class="text"><?php echo $title; ?></p>
<dl>
  <dd style="border-top:1px #D1DAE3 solid;padding-top:15px;">
  <span>讲座名称：</span><input name="lec_title" type="text" maxlength="25" style="width:220px;" value="<?php echo $lec['lec_title'] ?>"/></dd>
<dd><span>讲座时间：</span><input name="lec_time" type="text" maxlength="25" style="width:220px;" value="<?php echo $lec['lec_time'] ?>"/></dd>
<dd><span>讲座地点：</span><input name="lec_address" type="text" maxlength="25" style="width:220px;" value="<?php echo $lec['lec_address'] ?>"/></dd>
<dd><span>相关图片：</span>
    <?php if($lec['lec_image']!=''){?>
  <a href="<?php echo $baseurl ?>uploads/lecimg/<?php echo $lec['lec_image']?>" target="_blank"><img src="<?php echo $baseurl ?>images/admin_image/st.png" width="16" height="16" alt="查看图片" border="0"/></a>
  <?php }?>
    <input name="userfile" type="file" maxlength="25"/>
         <?php if($lec['lec_image']!=''){?> 
    （点击小图标可查看原图，如果需要替换请重新选择，图片不得大于300K）
    <?php }else{?>
    （JPG或GIF格式，文件不得大于300K）
    <?php }?>
	 <input name="fileisok" type="hidden" value=""></dd>
<dd><span>讲座内容简介（必填项，字数不限）：</span>
  <textarea name="lec_intro" cols="" rows="3" style="width:500px;height:100px;"><?php echo $lec['lec_intro'] ?></textarea>
</dd>
<dd style="height:50px;">
  <div style="width:400px;float:left"><span>报名电话：</span>
    <input name="lec_tel" type="text" maxlength="25" style="width:220px;" value="<?php echo $lec['lec_tel'] ?>"/>&nbsp;&nbsp;</div>
  <div style="width:90px;float:left;padding-top:5px;padding-left:10px;">
    <input name="submit1" type="submit" value="编辑讲座" style="height:40px;width:80px;line-height:40px;" />
    </div>
</dd>
<dd style="border-bottom:1px #D1DAE3 solid;"></dd>
</dl>
</form>
</div>

</body>
</html>
